﻿<phone:PhoneApplicationPage 
    x:Class="PhoneApp1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:charts="clr-namespace:Charts;assembly=Charts"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="170*" />
        </Grid.RowDefinitions>

        <controls:Panorama Title="Εκλογικά" Grid.Row="2" SelectionChanged="Panorama_SelectionChanged">
            <controls:PanoramaItem>
                <Grid Margin="0,-70,0,0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="170*" />
                    </Grid.RowDefinitions>
                    <ScrollViewer Height="660" BorderThickness="5" BorderBrush="{StaticResource PhoneAccentBrush}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="229" Margin="-6,0,0,0" Grid.Row="2">
                        <!--ContentPanel - place additional content here-->
                        <StackPanel Height="717" HorizontalAlignment="Left" Name="stackPanel1" VerticalAlignment="Top" Width="240">
                            <StackPanel Orientation="Horizontal" Name="p0">
                                <TextBlock Width="97" Height="36" FontSize="28" Text=" Κόμμα " Foreground="{StaticResource PhoneAccentBrush}" />
                                <TextBlock Width="49" Height="36" FontSize="30" Text="  %" HorizontalAlignment="Center" VerticalAlignment="Top" Foreground="{StaticResource PhoneAccentBrush}" />
                                <TextBlock Width="86" Height="36" FontSize="26"  Text=" Βουλ." Foreground="{StaticResource PhoneAccentBrush}" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p1">
                                <TextBox Margin="-15,0,0,0" Name="Name1" Width="100" Height="61" Text="ΠΑΣΟΚ" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" />
                                <TextBox Name="Percent1" Width="83" Height="64" Text="43.92" HorizontalAlignment="Left" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" BorderBrush="Transparent"  FontSize="20" />
                                <TextBox Name="Seats1" Width="70" Height="63" Text="151" VerticalAlignment="Top" HorizontalAlignment="Left" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p2">
                                <TextBox Margin="-15,0,0,0" Name="Name2" Width="100" Height="Auto" Text="ΝΔ" Background="{StaticResource PhoneBackgroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" />
                                <TextBox  Name="Percent2" Width="83" Height="64" Text="33.48" HorizontalAlignment="Left" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" />
                                <TextBox Name="Seats2" Width="Auto" Height="Auto" Text="84" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" />
                            </StackPanel>

                            <StackPanel Orientation="Horizontal" Name="p3">
                                <TextBox Margin="-15,0,0,0" Name="Name3" Width="100" Height="Auto" Text="KKE" HorizontalAlignment="Left" Background="{StaticResource PhoneBackgroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" />
                                <TextBox  Name="Percent3" Width="80" Height="Auto" Text="7.54" HorizontalAlignment="Left" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" />
                                <TextBox Name="Seats3" Width="Auto" Height="Auto" Text="21" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p4">
                                <TextBox Margin="-15,0,0,0" Name="Name4" Width="100" Height="Auto" Text="ΣΥΡΙΖΑ" HorizontalAlignment="Left" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" />
                                <TextBox  Name="Percent4" Width="80" Height="Auto" Text="4.60" HorizontalAlignment="Left" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" BorderBrush="Transparent" FontSize="20" />
                                <TextBox Name="Seats4" Width="Auto" Height="Auto" Text="13" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20"  GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus"/>

                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p5">
                                <TextBox Margin="-15,0,0,0" Name="Name5" Width="100" Height="Auto" Text="ΛΑΟΣ" Background="{StaticResource PhoneBackgroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" />
                                <TextBox  Name="Percent5" Width="80" Height="Auto" Text="5.63" HorizontalAlignment="Left" VerticalAlignment="Top" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" />
                                <TextBox Name="Seats5" Width="Auto" Height="Auto" Text="15" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" BorderBrush="Transparent" FontSize="20" />

                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p6">
                                <TextBox Margin="-15,0,0,0" Name="Name6" Width="100" Height="Auto" Text="ΔΑ" HorizontalAlignment="Left" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" FontSize="20" />
                                <TextBox  Name="Percent6" Width="80" Height="Auto" Text="0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" />
                                <TextBox Name="Seats6" Width="Auto" Height="Auto" Text="6" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" />

                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p7">
                                <TextBox Margin="-15,0,0,0" Name="Name7" Width="100" Height="Auto" Text="ΔΣ" HorizontalAlignment="Left" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" />
                                <TextBox  Name="Percent7" Width="80" Height="Auto" Text="0" HorizontalAlignment="Left" VerticalAlignment="Top" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" FontSize="20" />
                                <TextBox Name="Seats7" Width="Auto" Height="Auto" Text="5" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" BorderBrush="Transparent" FontSize="20" />

                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p8">
                                <TextBox Margin="-15,0,0,0" Name="Name8" Width="100" Height="67" Text="Πρασ." HorizontalAlignment="Left" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" BorderBrush="Transparent" FontSize="20" />
                                <TextBox  Name="Percent8" Width="80" Height="Auto" Text="2.63" HorizontalAlignment="Left" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}"  GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" BorderBrush="Transparent" FontSize="20" />
                                <TextBox Name="Seats8" Width="Auto" Height="Auto" Text="0" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" BorderBrush="Transparent" FontSize="20" />

                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p9" Visibility="Collapsed">
                                <TextBox Margin="-15,0,0,0" FontSize="20" Name="Name9" Width="100" Height="Auto" Text="" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" BorderBrush="Transparent" />
                                <TextBox FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus"  Name="Percent9" Width="80" Height="Auto" Text="0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" />
                                <TextBox FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Name="Seats9" Width="Auto" Height="Auto" Text="0" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" />

                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="p10" Visibility="Collapsed">
                                <TextBox Margin="-15,0,0,0" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" FontSize="20" Name="Name10" Width="100" Height="Auto" Text="" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" />
                                <TextBox FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus"  Name="Percent10" Width="80" Height="Auto" Text="0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" />
                                <TextBox FontSize="20" GotFocus="Name1_GotFocus" LostFocus="Name1_LostFocus" Name="Seats10" Width="Auto" Height="Auto" Text="0" VerticalAlignment="Top" Background="{StaticResource PhoneBackgroundBrush}" Foreground="{StaticResource PhoneForegroundBrush}" BorderBrush="Transparent" />
                            </StackPanel>
                            <Button Content="Νέο" x:Name="button1" Click="button1_Click" FontSize="20" />
                        </StackPanel>
                    </ScrollViewer>
                    <Canvas Name="canvas1" Margin="324,157,70,403" Grid.Row="2">
                        <charts:PieChart x:Name="basicPie" Grid.Row="1" Radius="100.0"
                         IsDoughnut="True" GapScale="0.25"
                         Stroke="LightGray" StrokeThickness="2.0" FontSize="10"
                         LabelStroke="Black" LabelLocation="Inside" LabelVisibility="Collapsed">
                        </charts:PieChart>
                    </Canvas>
                    <Canvas Name="canvas2" Margin="327,448,69,112" Grid.Row="2">
                        <charts:PieChart x:Name="parlPie" Grid.Row="1" Radius="100.0"
                         IsDoughnut="True" GapScale="0.25"
                         Stroke="LightGray" StrokeThickness="2.0" FontSize="10"
                         LabelStroke="Black" LabelLocation="Inside" LabelVisibility="Collapsed">
                        </charts:PieChart>
                    </Canvas>
                    <TextBlock Grid.Row="2" Height="37" HorizontalAlignment="Left" Margin="229,310,0,0" Name="textBlock1" Text="Βουλή" VerticalAlignment="Top" Width="194" />
                    <TextBlock Grid.Row="2" Height="37" HorizontalAlignment="Left" Margin="237,20,0,0" Name="textBlock2" Text="Ψήφοι" VerticalAlignment="Top" Width="194" />
                </Grid>
            </controls:PanoramaItem>
            <controls:PanoramaItem>
                <phone:WebBrowser Source="http://www.eklogika.gr/gallops" Margin="12,-80,48,0" Grid.Row="2" Height="633" Width="396" />
            </controls:PanoramaItem>
            <controls:PanoramaItem x:Name="twitterItem">
                <Image x:Name="wait" Source="wait.jpg"/>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>